package com.bjdd.jdy.ui.bindCard;

import com.bjdd.jdy.base.BaseModel;
import com.bjdd.jdy.base.BasePresenter;
import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.base.BaseView;
import com.bjdd.jdy.entity.BankBean;

import java.util.List;

import rx.Observable;

/**
 * Created by Administrator on 2017/5/11.
 */

public interface BindCardContract {
    interface Model extends BaseModel{
        Observable<BaseResult<List<BankBean>>> getBank(String token);
        Observable<BaseResult<String>> bindCard(String token,String carrierId,String bankcard,String realname,String bankId);
    }
    interface View extends BaseView{
        void BankSuccess(List<BankBean> data);
        void bindSuccess();
    }
    abstract class Presenter extends BasePresenter<Model,View>{
        abstract void getBank();
        abstract void bindCard(String bankCard,String realName,String bankId);
    }
}
